package com.ht.medicaltreatment.viewmodel

import androidx.lifecycle.viewModelScope
import com.xgst.lib.http.ApiResult
import kotlinx.coroutines.launch

class FormRecordViewModel : BaseViewModel() {
    fun requestFormList(onSuccess:()->Unit){
        viewModelScope.launch {
            val bean = mApi.requestFormList("")
            when(bean){
                is ApiResult.Success -> {}
                is ApiResult.Error -> {}
            }
        }
    }
}
